home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mac-Source 1994 July
/
Mac-Source_July_1994.iso
/
C and C++
/
Compilers⁄Interps
/
GCC-2.3.3r12
/
Sources-Apple
/
stathack.c
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1992-06-15
|
348 b
|
14 lines
|
[
TEXT/MPS
]
#include <stdio.h>
#include <stdlib.h>
#include <Files.h>
#include <IOCtl.h>
#include "stathack.h"
void fstat(int pFile, struct stat *pStat) {
int temp;
ioctl(pFile, FIOREFNUM, &temp);
pStat->st_ino = temp;
(void) GetVRefNum(pStat->st_ino, &pStat->st_dev);
/*fprintf(stderr, "F: %d, R: %d, D: %d\n", pFile, pStat->st_ino, pStat->st_dev);*/
}